package com.lq.principle.inversion;

public class DependecyInversion {

}
interface Itv {
    public void play();
}
interface IopenAndclose{
    public void open(Itv tv);
}
class OpenAndColes implements IopenAndclose{

    @Override
    public void open(Itv tv) {
        System.out.println("打开了"+tv+"电视");
    }
}
class Tv implements Itv{

    @Override
    public void play() {
        System.out.println("");
    }
}